ARD2  1.00 for Rev B. Hardware
Airbag Reference Demonstrator using MPC5604P
freemaster_MPC56xx.c File Reference

FreeMASTER Driver MPC56xx-hardware dependent stuff. More...

#include "freemaster.h"
#include "freemaster_private.h"
#include "freemaster_MPC56xx.h"

Functions

void FMSTR_Isr (void)
void FMSTR_CopyMemory (FMSTR_ADDR nDestAddr, FMSTR_ADDR nSrcAddr, FMSTR_SIZE8 nSize)
 The "memcpy" used internally in FreeMASTER driver.
FMSTR_BPTR FMSTR_CopyToBuffer (FMSTR_BPTR pDestBuff, FMSTR_ADDR nSrcAddr, FMSTR_SIZE8 nSize)
 Write-into the communication buffer memory.
FMSTR_BPTR FMSTR_CopyFromBuffer (FMSTR_ADDR nDestAddr, FMSTR_BPTR pSrcBuff, FMSTR_SIZE8 nSize)
 Read-out memory from communication buffer.
void FMSTR_CopyFromBufferWithMask (FMSTR_ADDR nDestAddr, FMSTR_BPTR pSrcBuff, FMSTR_SIZE8 nSize)
 Read-out memory from communication buffer, perform AND-masking.

Detailed Description

FreeMASTER Driver MPC56xx-hardware dependent stuff.

Version:
1.0.2.0
Date:
Apr-16-2010

Function Documentation

FMSTR_BPTR FMSTR_CopyFromBuffer ( FMSTR_ADDR  nDestAddr,
FMSTR_BPTR  pSrcBuff,
FMSTR_SIZE8  nSize 
)

Read-out memory from communication buffer.

Parameters:
nDestAddr- destination memory address
pSrcBuff- pointer to source memory in communication buffer
nSize- buffer size (always in bytes)
Returns:
This function returns a pointer to next byte in comm. buffer
void FMSTR_CopyFromBufferWithMask ( FMSTR_ADDR  nDestAddr,
FMSTR_BPTR  pSrcBuff,
FMSTR_SIZE8  nSize 
)

Read-out memory from communication buffer, perform AND-masking.

Parameters:
nDestAddr- destination memory address
pSrcBuff- source memory in communication buffer, mask follows data
nSize- buffer size (always in bytes)
void FMSTR_CopyMemory ( FMSTR_ADDR  nDestAddr,
FMSTR_ADDR  nSrcAddr,
FMSTR_SIZE8  nSize 
)

The "memcpy" used internally in FreeMASTER driver.

Parameters:
nDestAddr- destination memory address
nSrcAddr- source memory address
nSize- memory size (always in bytes)
FMSTR_BPTR FMSTR_CopyToBuffer ( FMSTR_BPTR  pDestBuff,
FMSTR_ADDR  nSrcAddr,
FMSTR_SIZE8  nSize 
)

Write-into the communication buffer memory.

Parameters:
pDestBuff- pointer to destination memory in communication buffer
nSrcAddr- source memory address
nSize- buffer size (always in bytes)
Returns:
This function returns a pointer to next byte in comm. buffer